/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:
 * Date: 2025-03-17
 * Time: 16:12
 */
class MyThread1 extends Thread{
    @Override
    //run相当于线程的入口
    public void run() {
        System.out.println("hello thread");
    }
}

public class demo1 {
    public static void main(String[] args) {
        Thread t = new MyThread();
        //真正在系统中创建一个线程
        t.start();
    }
}
